package testSpring;

import com.dao.Printer;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test2 {
    @Test
    public void TestPaper(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Printer printer=(Printer)context.getBean("printer");
        String content="非法水电费色粉舒服舒服"+"粉色方式VB发动机你看没看"+"上的GV洞若观火软件园"+"九号公寓孤魂厘米了"+"可见面覅不回健康美丽";
        printer.print(content);
    }
}
